#include <stdio.h>
#include <string.h>
#include <mysql/mysql.h>
#include "include.h"

int main()
{
	MYSQL *mysql = mysql_init(NULL);                                         
	if(mysql == NULL)                                                       
	{                                                                       
		fprintf(stderr,"%s\n",mysql_error(mysql));
		return -1;                                                          
	}                
	if(mysql_real_connect(mysql,"localhost","root","gaosi0517","student",0,NULL,0) == NULL){
		printf("mysql_init(): %s\n", mysql_error(mysql));	
		mysql_close(mysql);
	}
	stud(mysql);
	mysql_close(mysql);
	return 0;
}
